﻿<%@ Page Language="C#"  MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="ViewRetrievalForm.aspx.cs" Inherits="PresentationLayer.View.StoreClerk.ViewRetrievalForm" %>


<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
     <table width="100%">
    <tr>
        <td style="height:auto;width:200px;vertical-align:top;vertical-align:top;">

         
            <uc1:mainMenu ID="mainMenu1" runat="server" />

         
        </td>
        <td>


    <div>

   <center><h2><u>
        View Retrieval Form
    </u></h2></center>
   
    <table width="100%">
        <tr>
            <td style="width:150px;">
            Category&nbsp; :&nbsp;
            </td>
            <td>
        <asp:DropDownList ID="ddCategory" runat="server" AppendDataBoundItems="True" 
            AutoPostBack="True">
        <asp:ListItem Value="0">Select Category</asp:ListItem>
        </asp:DropDownList>
            </td>
            <td style="text-align:right;">
              <asp:Button ID="btnPrint" runat="server" Text="Print" Width="69px" />
            </td>
        </tr>
    </table>
       
        <br />
        <br />
        <asp:GridView ID="gvRetrievalList" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
            GridLines="None" Width="695px" EmptyDataText="No Current Requisition" 
            onpageindexchanging="gvRetrievalList_PageIndexChanging" PageSize="20">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="No">
                <ItemTemplate>
                   <%# Container.DataItemIndex + 1 %>
                </ItemTemplate>
                </asp:TemplateField>
               
                <asp:TemplateField HeaderText="Item">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server"  Text='<%# Eval("Desc") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server"  Text='<%# Eval("Desc") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="BinNo">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("BinId") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("BinId") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText="REQ Qty">
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server"  Text='<%# Eval("RequestedQty") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server"  Text='<%# Eval("RequestedQty") %>'></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="REC Qty">
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server"  Text='<%# Eval("ReceivedQty") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server"  Text='<%# Eval("ReceivedQty") %>'></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>


                <asp:TemplateField HeaderText="Needed Qty">
                    <ItemTemplate>
                        <asp:Label ID="Label5" runat="server"  Text='<%# Eval("OutstandingQty") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server"  Text='<%# Eval("OutstandingQty") %>'></asp:TextBox>
                    </EditItemTemplate>
                </asp:TemplateField>
               
                <asp:TemplateField HeaderText="-">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "AssignDisbursementItem.aspx?Itemid="+Eval("ItemId")+"_"+Eval("OutstandingQty") %>' Text="Assign"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <br />
        <asp:Label ID="Label5" runat="server" Visible="False"></asp:Label>
        <br />
        
        <br />
    
    </div>
           
</td></tr></table>
</asp:Content>